package com.example.demo.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * OrderItemRequest
 *  确认上菜数量request
 * @author liujin
 * @date 2020/12/18 14:10
 */
@ApiModel
@Data
public class OrderItemConfirmRequest implements Serializable {

    @ApiModelProperty(value = "订单详情ID", required = true)
    @NotNull
    private Long ordersItemId;

    @ApiModelProperty(value = "已完成上菜数量", required = true)
    @Min(1)
    private int quantity;

}
